package org.example.feign.feignClient;


import org.example.feign.pojo.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(name = "pojoservice")
public interface PojoServiceClient {

    @PostMapping("/1/UpdataPrice")
    String updataPrice(@RequestBody MyEntity entity);

    @GetMapping("/getprice")
    Result getprice();
    @PostMapping("/newprice")
    String newprice(@RequestBody MyEntity entity);

    @PostMapping("/sendPay")
    String pay(@RequestBody  Pay pay);
    @PostMapping("/1/check")
    Employees checkLogin(@RequestBody Map<String, Object> requestBody);
    @PostMapping("/data")
    int Updata(@RequestBody Midpojo midpojo);
}